<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html >
<head>
	<meta name="decorator" content="moduleEdit"/>
		<style type="text/css">
			h4{border-bottom:1px dotted #ccc; padding-bottom:10px; margin:0 0 15px; color:#b12028; font-size: 15px;}
		</style>
	<link href="${staticPath}/lib/datetimepicker/0.0.11/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css">
	<link href="${staticPath}/lib/chosen/1.1.0/chosen.min.css" rel="stylesheet" type="text/css">
	<link rel="stylesheet" href="${staticPath}/lib/ztree/3.5/css/zTreeStyle/zTreeStyle.css" type="text/css">
	<script src="${staticPath}/js/jquery-dialog.js" type="text/javascript"></script>
	<script src="${staticPath}/lib/ztree/3.5/js/jquery.ztree.all-3.5.js" type="text/javascript"></script>
	<script src="${staticPath}/js/jQuery.FillOptions.js"></script>
	<script type="text/javascript" src="${staticPath}/js/selectBerth.js"></script>
	<script type="text/javascript">
		var replaceSupplierNo_edit = "${intAssterminate.replaceSupplierId}";
		var replaceBrand_edit = "${intAssterminate.replaceBrand}";
		var replaceBrand1_edit = "${intAssterminate.replaceBrand1}";
		var replaceBrand2_edit = "${intAssterminate.replaceBrand2}";
		var replaceBrand3_edit = "${intAssterminate.replaceBrand3}";
		var navId ='${navId}';
	</script>
	<script type="text/javascript" src="${staticPath}/js/intent/intAssterminate.js"></script>
	<style type="text/css">
	#barndModal .modal-dialog {
		width: 60%;
	}

	#assitems .modal-dialog {
		width: 60%;
	}

	#assbasemodal .modal-dialog {
		width: 70%;
	}

	#supplierModal .modal-dialog {
		width: 70%;
	}
</style>
</head>
<body>
<div class="Report_f">
	<div class="Report_f_1">
			<form id="intAssterminateForm" action="${contextPath}/biz/intent/intAssterminate/save?navId=${navId}" method="post" class="form-horizontal">
			<div class="Report_f_title_1">联营撤柜意向
			</div>
			
			 <ul class="nav nav-tabs Report_f_title_2" id="myTab">
			  		<li class="active"><a href="#home" data-toggle="tab">基本信息</a></li>
			        <li><a href="#workflow" data-toggle="tab">流程审批 </a></li> 
			  		<li><a href="#diagram" data-toggle="tab">流程图</a></li>
			 </ul> 
			<div>
			<input type="hidden" id="contractId" name="contractId" value="${intAssterminate.contractId}" >
			<input type="hidden" id="id" name="id" value="${intAssterminate.id}" >
			<input type="hidden" id="intentNo" name="intentNo" value="${intAssterminate.intentNo}" >
			<input type="hidden" id="status" name="status" value="${intAssterminate.status}" >
			<input type="hidden" id="path" value="intAssterminate">
			<input type="hidden" id="terminate" value="terminate">
			
				<div class="tab-content Report_f_title_3 ">
						<div class="tab-pane active" id="home">
							<div class="Report_f_title_4">
								<div class="f_2">
									<div class="form-group col-sm-6">
										<label for="inputtext3" class="col-sm-3 control-label f_4">原合同号:</label>
										<div class="col-sm-6 f_6">
											<input id="contractNo" name="contractNo"
												value="${associatedContract.contractNo}" maxlength="200"
												readonly="readonly" class="f_5  readonly" />
										</div>
									</div>
									<div class="form-group col-sm-6">
										<label for="inputtext3" class="col-sm-3 control-label f_4">合同名称:</label>
										<div class="col-sm-6 f_6">
											<input id="subject" name="subject" value="${associatedContract.subject}" maxlength="200"
												placeholder="联营合同" readonly class="f_5" />
										</div>
									</div>
								</div>
								<div class="f_2">
									<div class="form-group col-sm-6">
										<label for="inputtext3" class="col-sm-3 control-label f_4">管理区域:</label>
										<input type="hidden" id="areaId" name="areaId" value="${intAssterminate.areaId}">
										<div class="col-sm-6 f_6">
												<input type="text" class="f_5"value="${intAssterminate.area}" id="area" name="area"readonly="readonly"> 
										</div>
									</div>
									<div class="form-group col-sm-6">
										<div>
											<label for="inputtext3" class="col-sm-3 control-label f_4">签约门店:</label>
											<input type="hidden" id="storeId" name="storeId" value="${intAssterminate.storeId}">
											<div class="col-sm-6 f_6">
												<input type="text" class="f_5"
													value="${intAssterminate.store}" id="store" name="store" 
													readonly="readonly"> 
											</div>
										</div>
									</div>
								</div>
								<div class="f_2">
									<div class="form-group col-sm-6">
										<label for="floor" class="col-sm-3 control-label f_4">签约楼层:</label>
										<input type="hidden" id="floorId" name="floorId" value="${intAssterminate.floorId}">
										<div class="col-sm-6 f_6">
											<input type="text" class="f_5"value="${intAssterminate.floor}" id="floor" name="floor"readonly="readonly">
										</div>
									</div>

									<div class="form-group col-sm-6">

										<label for="inputtext3" class="col-sm-3 control-label f_4">是否逃场:</label>
										<div class="col-sm-6 f_6">
												<ossp:select dictType="IS_TAKE_FLIGHT" id="isTakeFlight" defaultSelected="0" value="${intAssterminate.isTakeFlight }" name="isTakeFlight"></ossp:select>
										</div>
									</div>
								</div>
								<div class="f_2">
									<div class="form-group col-sm-6">
									<input type="hidden" id="supplierId" name="supplierId" value="${intAssterminate.supplierId}">
										<label for="inputtext3" class="col-sm-3 control-label f_4">供应商名称:</label>
										<div class="col-sm-6 f_6">
												<input type="text" class="f_5"value="${intAssterminate.supplierName}" id="supplierName" name="supplierName"readonly="readonly"> 
										</div>
									</div>
									<div class="form-group col-sm-6">
										<div>
											<label for="inputtext3" class="col-sm-3 control-label f_4">供应商编号:</label>
											<div class="col-sm-6 f_6">
												<input type="text" class="f_5"
													value="${intAssterminate.supplierNo}" id="supplierNo" name="supplierNo" 
													readonly="readonly"> 
											</div>
										</div>
									</div>
								</div>
								
								<div class="f_2">
									<div class="form-group col-sm-6">
										<label for="inputtext3" class="col-sm-3 control-label f_4">是否欠款:</label>
										<div class="col-sm-6 f_6">
												<ossp:radio dictType="YESORNO" id="isDebt" value="${intAssterminate.isDebt }" defaultChecked="1" name="isDebt"></ossp:radio>
										</div>
									</div>
									<div class="form-group col-sm-6">
										<div>
											<label for="inputtext3" class="col-sm-3 control-label f_4">有无法律纠纷:</label>
											<div class="col-sm-6 f_6">
												<ossp:radio dictType="YESORNO" id="hasLawRisk" defaultChecked="1" value="${intAssterminate.hasLawRisk }" name="hasLawRisk"></ossp:radio>
											</div>
										</div>
									</div>
								</div>
								
								<div class="f_2">
									<div class="form-group col-sm-6">
										<label for="inputtext3" class="col-sm-3 control-label f_4">合同起始日期:</label>
										<div class="col-sm-6 f_6">
											<div class="input-group date  o-a-form-datetime " data-date="" data-date-format="yyyy-mm-dd">
												<input class="f_5" readonly id="startDate1" name="startDate1"value="<fmt:formatDate value="${intAssterminate.startDate}" type="both" pattern="yyyy-MM-dd"/> "size="10" type="text" /> 
												<input type="hidden" id="startDate" name="startDate" value="<fmt:formatDate value="${intAssterminate.startDate}" type="both" pattern="yyyy-MM-dd"/>" />
												<span class="input-group-addon f_time"><i class="glyphicon glyphicon-remove"></i></span>
	                           					 <span class="input-group-addon f_time"><span class="glyphicon glyphicon-calendar"></span></span>
											</div>
										</div>
									</div>

									<div class="form-group col-sm-6">
										<label for="inputtext3" class="col-sm-3 control-label f_4">合同终止日期:</label>
										<div class="col-sm-6 f_6">
											<div class="input-group date  o-a-form-datetime " data-date="" data-date-format="yyyy-mm-dd">
												<input class="f_5" id="endDate1" name="endDate1" size="10"  readonly value=" <fmt:formatDate value="${intAssterminate.endDate}" type="both" pattern="yyyy-MM-dd"/> " type="text" /> 
												<input type="hidden" id="endDate" name="endDate" value="<fmt:formatDate value="${intAssterminate.endDate}" type="both" pattern="yyyy-MM-dd"/>" />
												<span class="input-group-addon f_time"><i class="glyphicon glyphicon-remove"></i></span>
	                           					 <span class="input-group-addon f_time"><span class="glyphicon glyphicon-calendar"></span></span>

											</div>
											<span id="endDateMessage" class=" help-inline"
												style="color: red;"></span>
										</div>
									</div>

								</div>
								<div class="f_2">
									<div class="form-group col-sm-6">
										<label for="inputtext3" class="col-sm-3 control-label f_4">是否超合同经营期限:</label>
										<div class="col-sm-6 f_6">
												<ossp:radio dictType="YESORNO" id="isExpiredRun" defaultChecked="1" value="${intAssterminate.isExpiredRun }" name="isExpiredRun"></ossp:radio>
										</div>
									</div>
									<div class="form-group col-sm-6">
										<label for="inputtext3" class="col-sm-3 control-label f_4">预计撤柜日期:</label>
										<div class="col-sm-6 f_6">
											<div class="input-group date  o-a-form-datetime " data-date="" data-date-format="yyyy-mm-dd">
												<input class="f_5"  size="10" id="terminateDate" name="terminateDate"  readonly  type="text" value="<fmt:formatDate value="${intAssterminate.terminateDate}" type="both" pattern="yyyy-MM-dd"/>" /> 
												<span class="input-group-addon f_time"><i class="glyphicon glyphicon-remove"></i></span>
	                           					 <span class="input-group-addon f_time"><span class="glyphicon glyphicon-calendar"></span></span>
											</div>
											<span id="endDateMessage" class=" help-inline"
												style="color: red;"></span>
										</div>
									</div>
								</div>
								<div class="f_2">
									<div class="form-group col-sm-6">
											<label for="inputtext3" class="col-sm-3 control-label f_4">供应商撤柜原因:</label>
											<div class="col-sm-5 f_7">
												<textarea rows="5" cols="110" id="terminateReason" name="terminateReason" class="form">${intAssterminate.terminateReason}</textarea>
											</div>
									</div>
									
								</div>
								<div class="f_2">
									
								</div>
								<div class="f_2">
									<div class="form-group col-sm-8">
										<label for="inputtext3" class="col-sm-2	 control-label f_4">顶场供应商:</label>
										<input type="hidden" id="replaceSupplierNo" name="replaceSupplierId" value="${intAssterminate.replaceSupplierId}">
										<div class="col-sm-6 f_6">
										<div class="input-group ">
											<input id="replaceSupplierName" name="replaceSupplier" value="${intAssterminate.replaceSupplier}"  maxlength="200" class="f_5" readonly="readonly" /> 
											<span class="input-group-addon f_time"><a href="javascript:void" onclick="cleanSupplier()"><i class="glyphicon glyphicon-remove"></i></a></span>
											<span class="input-group-btn">
													<button class="btn btn-default btn_3" id="replaceSupplierButton"
														 type="button">选择</button>
											</span>
										</div>
										</div>
									</div>
									
								</div>
								<div class="f_2">
									<div class="form-group col-sm-6">
										<label for="inputtext3" class="col-sm-3 control-label f_4">顶场品牌:</label>
										<div class="col-sm-6 f_6">
										<select type="text" class="f_5" id="replaceBrandId" name="replaceBrandId">
	                        				<option value="" > -----请选择-----</option>
	                       				</select>
										<input type="hidden" id="replaceBrand" name="replaceBrand" value="${intAssterminate.replaceBrand}">
										</div>
									</div>
									<div class="form-group col-sm-6">
										<label for="inputtext3" class="col-sm-3 control-label f_4"><span class="span-required" style="color:red">*</span>供应商招商负责人:</label>
										<div class="col-sm-6 f_6">
											<div class="input-group">
												<input type="hidden" id="replaceInviteHeadId" readonly="true"  maxlength="200" class="f_5 required" />
												<input id="replaceInviteHead" readonly="true" name="replaceInviteHead" value="${intAssterminate.replaceInviteHead}" maxlength="200" class="f_5" />
												<span class="input-group-addon f_time"><a href="javascript:void" onclick="cleanReplaceInviteHead()"><i class="glyphicon glyphicon-remove"></i></a></span>
												<span class="input-group-btn">
													<button class="btn btn-default btn_3" id="userDialogMultiple"
														data-dialog="dialog" data-multiple="true"
														data-idField="replaceInviteHeadId" data-nameField="replaceInviteHead"
														data-authType="USER" type="button">选择</button>
												</span>
											</div>
										</div>
									</div>
								</div>
								
								<div class="f_2">
									<div class="form-group col-sm-6">
											<label for="inputtext3" class="col-sm-3 control-label f_4">品牌简介:</label>
											<div calss="input-group"></div>
											<div class="col-sm-5 f_7">
												<textarea  rows="5" cols="110" class="form" maxlength="2000" name="brandSummary" id="brandSummary">${intAssterminate.brandSummary}</textarea>
											</div>
									</div>
									
								</div>
								
								<div class="f_2">
									<div class="form-group col-sm-6">
										<div>
											<label for="inputtext3" class="col-sm-3 control-label f_4">备选品牌1:</label>
											<div class="col-sm-6 f_6">
											<select type="text" class="f_5" id="replaceBrandId1" name="replaceBrandId1">
	                        				<option value="" >-----请选择-----</option>
	                       				</select>
												<input type="hidden" class="f_5" id="replaceBrand1" value="${intAssociated.replaceBrand1}" name="replaceBrand1" readonly="readonly"> 
											</div>
										</div>
									</div>
									<div class="form-group col-sm-6">
										<div>
											<label for="inputtext3" class="col-sm-3 control-label f_4">备选品牌2:</label>
											<div class="col-sm-6 f_6">
											<select type="text" class="f_5" id="replaceBrandId2" name="replaceBrandId2">
	                        				<option value="" >-----请选择-----</option>
	                       				</select>
												<input type="hidden" class="f_5" id="replaceBrand2" value="${intAssociated.replaceBrand2}" name="replaceBrand2" readonly="readonly"> 
											</div>
										</div>
									</div>
								</div>
								<div class="f_2">
									<div class="form-group col-sm-6">
										<div>
											<label for="inputtext3" class="col-sm-3 control-label f_4">备选品牌3:</label>
											<div class="col-sm-6 f_6">
											<select type="text" class="f_5" id="replaceBrandId3" name="replaceBrandId3">
	                        				<option value="" >-----请选择-----</option>
	                       				</select>
												<input type="hidden" class="f_5" id="replaceBrand3" value="${intAssociated.replaceBrand3}" name="replaceBrand3" readonly="readonly"> 
											</div>
										</div>
									</div>
									
									<div class="form-group col-sm-6">
										<label for="inputtext3" class="col-sm-3 control-label f_4">预计进场日期:</label>
										<div class="col-sm-6 f_6">
											<div class="input-group date  o-a-form-datetime " data-date="" data-date-format="yyyy-mm-dd">
												<input class="f_5"  size="10" id="expectEnterDate1" name="expectEnterDate1"  readonly  type="text" value="<fmt:formatDate value="${intAssterminate.expectEnterDate}" type="both" pattern="yyyy-MM-dd"/>" /> 
												<input type="hidden" id="expectEnterDate" name="expectEnterDate"  value="<fmt:formatDate value="${intAssterminate.expectEnterDate}" type="both" pattern="yyyy-MM-dd"/>"/>
												<span class="input-group-addon f_time"><i class="glyphicon glyphicon-remove"></i></span>
	                           					 <span class="input-group-addon f_time"><span class="glyphicon glyphicon-calendar"></span></span>
											</div>
											<span id="endDateMessage" class=" help-inline"
												style="color: red;"></span>
										</div>
									</div>
								</div>
								<div class="f_2">
									<div class="form-group col-sm-6">
										<div>
											<label for="inputtext3" class="col-sm-3 control-label f_4">提报人:</label>
											<div class="col-sm-6 f_6">
												<input type="text" class="f_5" id="createBy" value="${intAssterminate.createBy}" readonly="readonly"> 
												<input type="hidden" class="f_5" id="createById" name="createBy" value="${intAssterminate.createById}" readonly="readonly"> 
											</div>
										</div>
									</div>
									<div class="form-group col-sm-6">
										<label for="inputtext3" class="col-sm-3 control-label f_4">提报时间:</label>
										<div class="col-sm-6 f_6">
											<div class="input-group date  o-a-form-datetime " data-date="" data-date-format="yyyy-mm-dd">

												<input class="f_5"  size="10" id="createTime1" name="createTime1" value="<fmt:formatDate value="${intAssterminate.createTime}" type="both" pattern="yyyy-MM-dd HH:mm:ss"/>" readonly  type="text" /> 
												<input type="hidden" id="createTime" name="createTime" type="both" value="<fmt:formatDate value="${intAssterminate.createTime}" type="both" pattern="yyyy-MM-dd HH:mm:ss"/>"pattern="yyyy-MM-dd  HH:mm:ss"/>

												<span class="input-group-addon f_time"><i class="glyphicon glyphicon-remove"></i></span>
	                           					 <span class="input-group-addon f_time"><span class="glyphicon glyphicon-calendar"></span></span>
											</div>
											<span id="createTime" class=" help-inline"
												style="color: red;"></span>
										</div>
									</div>
									
								</div>
								<div class="f_2">
									<div class="form-group col-sm-6">
										<div>
											<label for="inputtext3" class="col-sm-3 control-label f_4">最后修改人:</label>
											<div class="col-sm-6 f_6">
												<input type="text" class="f_5" id="updateBy" name="updateBy" readonly="readonly" value="${intAssterminate.updateBy}"> 
											</div>
										</div>
									</div>
									<div class="form-group col-sm-6">
										<label for="inputtext3" class="col-sm-3 control-label f_4">最后修改时间:</label>
										<div class="col-sm-6 f_6">
											<div class="input-group date  o-a-form-datetime " data-date="" data-date-format="yyyy-mm-dd">
												<input class="f_5"  size="10" id="updateTime1" name="updateTime1"  readonly  type="text" value="<fmt:formatDate value="${intAssterminate.updateTime}" type="both" pattern="yyyy-MM-dd HH:mm:ss"/>" /> 
												<input type="hidden" id="updateTime" name="updateTime" type="both" value="<fmt:formatDate value="${intAssterminate.updateTime}" type="both" pattern="yyyy-MM-dd  HH:mm:ss"/>"pattern="yyyy-MM-dd  HH:mm:ss"/>

												<span class="input-group-addon f_time"><i class="glyphicon glyphicon-remove"></i></span>
	                           					 <span class="input-group-addon f_time"><span class="glyphicon glyphicon-calendar"></span></span>
											</div>
											<span id="endDateMessage" class=" help-inline"
												style="color: red;"></span>
										</div>
									</div>
									
								</div>
							</div>
						</div>
							<div class="tab-pane" id="workflow"> 
								  <c:import url="/WEB-INF/views/bpm/workflow/workFlowInfo_edit.jsp">
									<c:param name="formName" value="com.maoye.ossp.biz.intent.entity.IntAssterminate" />
									<c:param name="flowKey" value="intAssterminate" />
									<c:param name="businessId" value="${intAssterminate.id}"/>
									<c:param name="method" value="${method}"/>
									<c:param name="isStart" value="${isStart}"/>
								  </c:import> 			
							</div>
							<div class="tab-pane" id="diagram" style="overflow-x:auto;">
								<iframe id="diagram_iframe" scrolling="no" frameborder=0 width="100%">
								</iframe>
							</div>
						 <div class="tab-pane" id="contract_hist">
						 	<iframe id="versionFrame"   name="versionFrame"  
															scrolling="no" frameborder="no" width="100%"></iframe>
						 </div>	
				</div>
			</div>	
			<div class="o-l-action">
					<a class="btn btn-default btn-sm pull-right btn_3" role="button" href="#">返回</a>
						<c:if test="${intAssterminate.status == '00'}">
						<button id="save" class="btn btn-info btn_3 btn_right" type="submit">保 存</button>
					</c:if>
					<button id="submit_wokFlow" class="btn btn-info btn_3 btn_right" type="button">提交</button>
				</div>
				</form>
		</div>
</div>

			<!-- Modal -->
	<div class="modal fade" id="supplierModal" style="width: 800"
		tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
		aria-hidden="true" data-focus-on="input:first">></div>
			<!-- Modal顶场品牌-->
			<div class="modal fade" id="mymodal_brand" tabindex="-1" role="dialog" aria-labelledby="myModalLabel_brand" aria-hidden="true"></div>
	</div>

	<script type="text/javascript">
	$('.o-a-form-datetime').datetimepicker({
        language:  'zh-CN',
        weekStart: 1,
        todayBtn:  1,
		autoclose: 1,
		todayHighlight: 1,
		startView: 2,
		minView: 2,
		forceParse: 0,
		format: 'yyyy-mm-dd'
    });

</script>
</body>
</html>